package com.ruibang.glass.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.purchase.domain.req.PurchaseReturnReq;
import com.ruibang.glass.purchase.entity.PurchaseReturns;

import java.util.List;

/**
 * <p>
 * 采购退货表，用于记录采购退货的相关信息 服务类
 * </p>
 *
 * @author mameng
 * @since 2024-03-28
 */
public interface PurchaseReturnsService extends IService<PurchaseReturns> {

    IPage<PurchaseReturns> getPage(PurchaseReturnReq purchaseReturnReq);

    /**
     * 退货新增到库存表
     *
     * @param purchaseReturns
     */
    void addPurchaseReturns(PurchaseReturns purchaseReturns);

    void updatePurchaseReturns(PurchaseReturns purchaseReturns);

    String getTHNumber();

    void processNotice(String businessId);

    PurchaseReturns getPurchaseReturnsById(String id);

    void updateOrderQuality(List<String> ids);


//
//    PurchaseReturns getPurchaseReturns(String id);

//    void addWgInventory(String id);

}
